package com.sens.tables;

import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.NotNull;
import com.litesuits.orm.db.annotation.Table;
import com.sens.database.LiteOrmDBUtil;

@Table("AlipayOrder")
public class AlipayOrder extends BaseOrder{
    @Column("time")
    @NotNull
    private String time;
    @NotNull
    @Column("tradeNo")
    private String tradeNo;
    @Column("mark")
    private String mark;
    @Column("markType")
    private String markType;
    @NotNull
    @Column("money")
    private String money;
    @Column("unit")
    private String unit;
    @Column("payType")
    private String payType;
    @Column("state")
    private String state;
    @Column("userId")
    private String userId;
    @Column("orderType")
    private String orderType;

    public void setTime(String time) {
        this.time = time;
    }

    public String getTime() {
        return time;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public String getMarkType() {
        return markType;
    }

    public void setMarkType(String markType) {
        this.markType = markType;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    @Override
    public String requestQueryKey() {
        return  time + tradeNo + mark + markType + money + unit + payType + state + userId + orderType;
    }

    @Override
    public String toString() {
        return "AlipayOrder{" +
                "time='" + time + '\'' +
                ", tradeNo='" + tradeNo + '\'' +
                ", mark='" + mark + '\'' +
                ", markType='" + markType + '\'' +
                ", money='" + money + '\'' +
                ", unit='" + unit + '\'' +
                ", payType='" + payType + '\'' +
                ", state='" + state + '\'' +
                ", userId='" + userId + '\'' +
                ", orderType='" + orderType + '\'' +
                '}';
    }
}